const outinfos = {
  code: 2000,
  message: '成功',
  data: {
    topMenus: [
      {
        id: '0',
        name: '/elcwork',
        icon: 'el-icon-user-solid',
        alias: '控制台',
      },
      {
        name: '/elcwork/syscms',
        icon: 'el-icon-chat-dot-round',
        alias: '通知',
      },
      {
        name: '/elcwork/prodms',
        icon: 'el-icon-coin',
        alias: '产品库',
      },
      {
        name: '/elcwork/docms',
        icon: 'el-icon-files',
        alias: '文档库',
      },
      {
        name: '/elcwork/pmcms',
        icon: 'el-icon-coin',
        alias: '项目',
      },
    ],
    ShortcutBar: [
      {
        name: '',
        id: 0,
        icon: 'el-icon-user-solid',
        alias: '上传需求',
        pars: {
          a: 1,
        },
      },
    ],
    topMenusActive: '/elcwork',
  },
};

const asideMainMenus = {
  code: 2000,
  message: '成功',
  data: [
    {
      id: 0,
      name: '/ElckerApp/text',
      icon: 'el-icon-message',
      alias: '一级菜单',
      menuPath: '测试-测试-测试',
    },
    {
      id: 1,
      name: 'systemManage',
      icon: 'el-icon-message',
      alias: '两级菜单',
      //二级
      children: [
        {
          id: 3,
          name: '/ElckerApp/ce',
          icon: 'el-icon-loading',
          alias: '权限管理',
          menuPath: '两级菜单-权限管理',
        },
      ],
    },
    {
      //一级
      id: 6,
      name: 'userManage',
      icon: 'el-icon-news',
      alias: '三级菜单',
      //二级
      children: [
        {
          id: 7,
          name: 'accountManage',
          icon: 'el-icon-phone-outline\r\n',
          alias: '帐号管理',
          //三级
          children: [
            {
              id: 14,
              name: 'emailManage',
              icon: 'el-icon-sold-out\r\n',
              alias: '邮箱管理',
            },
            {
              id: 13,
              name: 'passManage',
              icon: 'el-icon-service\r\n',
              alias: '密码管理',
            },
          ],
        },
        {
          id: 8,
          name: 'integralManage',
          icon: 'el-icon-picture',
          alias: '积分管理',
        },
      ],
    },
  ],
};

import { MockMethod } from 'vite-plugin-mock';
const urlComPath = '/elckerApi/menusService/';

export default [
  {
    url: urlComPath + 'getElckerUserMenus',
    method: 'get',
    response: () => {
      return outinfos;
    },
  },
  {
    url: urlComPath + 'getElckerUserMenuDatas',
    method: 'get',
    response: () => {
      return asideMainMenus;
    },
  },
] as MockMethod[];
